﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;

namespace Global.Validation
{
    public class QQAttribute : RegularExpressionAttribute
    {
        public QQAttribute() : base(@"[1-9]\d{4,14}") { }

        public override string FormatErrorMessage(string name)
        {
            return "* QQ号码格式错误";
        }
    }
}
